<?php

namespace app\api\controller;

use app\BaseController;
use app\common\business\Goods;
use app\common\lib\Show;
use app\common\lib\sms\AliSms;

class Index extends ApiBase
{
    public function getRotationChart()
    {
        $data = (new Goods())->getRotationChart();
        return Show::success($data);
    }

    public function categoryGoodsRecommend()
    {
        $category_ids = [
            4
        ];

        $res = (new Goods())->categoryGoodsRecommend($category_ids);

        return Show::success($res);
    }
}